Set

Function

This API is used to reset IPC default parameters.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
passwordMax length: 16stringVerify the admin user password for secondary authentication.
channel_infoobjectTotal channel information object, see Table 2 for details.
base_secondary_authenticationobjectencrypted authentication object, see base_secondary_authentication information table for details information.
Table 2
ParameterRangeTypeDescription
CH1objectA channel information object, see Table 3 for details.
...object
IP_CH1object
...object
WIFI_CH1object
...object
Table 3
ParameterRangeTypeDescription
reset_switchboolReset default switch. (This field is only used when IPC resets to default)
Sample:
POST /API/IPCMaintaint/IPCReset/Set HTTP/1.1
{
    "version":"1.0",
    "data":
    {
        "password": "1111qqqq",
        "channel_info":
        {
            "CH1":
            {
                "reset_switch": true
            }
        },
        "base_secondary_authentication":
        {
            "seq":1,
            "cipher":"r8zCQd+EQpuhKY2bKSZhEK/mkpeEzTRVlgDwiepew8k="
        }
    }
}

Response Message

Parameter Description

Table 4
ParameterRangeTypeDescription
channel_infoobjectTotal channel information object, see Table 5 for details.
Table 5
ParameterRangeTypeDescription
CH1objectA channel information object, see Table 6 for details.
...object
IP_CH1object
...object
WIFI_CH1object
...object
Table 6
ParameterRangeTypeDescription
state"Success","Failed"stringThe status of the IPC operation.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "channel_info":
        {
            "CH1":
            {
                "state": "Success"
            }
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.